﻿using System.Threading;

namespace Odyssey.Application
{
    public static class HostExtension
    {
        public static void Start(this IApplicationHost applicationHost, CancellationToken cancellationToken = default(CancellationToken))
        {
            applicationHost.StartAsync(cancellationToken).GetAwaiter().GetResult();
        }
    }
}
